package cn.shujuhai.common.config;


import cn.shujuhai.common.service.impl.SettingServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @Author: NiuYaHu
 * @Date: 2024/12/9 14:32
 * @Description:
 **/
@RequiredArgsConstructor
@Component
public class CacheInitializer implements CommandLineRunner {

    final SettingServiceImpl settingService;

    @Override
    public void run(String... args) throws Exception {
        settingService.initGlobalParamsToRedis();
    }
}

